﻿{extend name="../template/master.html" /}
{block name="content"}


<link href="/static/index/css/ywgoods_1.css" type="text/css" rel="stylesheet"/>
<script src="/static/index/js/jquery.imagezoom.min_1.js"></script>
<script src="/static/index/js/ywgoods.js"></script>
<div id="test" style="float:left;z-index:999999;position:absolute;top:0px;left:0px;display:none;"></div>
<div class="x-wrap">
    <div class="list_crumb">
        <ul class="list_crumb_list">
            <li class="classify"><a href="/">商城首页</a><i class="crumb_arrow"></i></li>
            {foreach $Fdata as $k=>$v}
            <li class="classify"><a href="{:url('index/lists/index',['id'=>$v['id']])}">{$v.cname}</a><i class="crumb_arrow"></i></li>
            {/foreach}
            <li class="classify"><a> {$Gdata['title']}</a></li>
        </ul>
    </div>
    <div class="x-detail">
        <div class="pro-box">
            <div class="pro-img-box">


                <div class="tb-booth tb-pic tb-s310">
                    <div class="new">新品</div>
                    <a title="   {$Gdata['title']}" href="">
                        <img style="width: 448px; height: 448px;" src="/{$Gdata['list_pic']}" title="{$Gdata['title']}" alt="{$Gdata['title']}" rel="/{$Gdata['list_pic']}" class="jqzoom"/></a>
                </div>

                <ul class="tb-thumb" id="thumblist_0201">
                    {foreach $picdata as $v}
                    <li>
                        <div class="tb-pic tb-s40"><a href="javascript:;">
                            <img style="width: 80px" src="/{$v.pic}" alt="{$Gdata['title']}" mid="/{$v.pic}" title="{$Gdata['title']}" big="/{$v.pic}"></a>
                        </div>
                    </li>
                    {/foreach}
                </ul>


            </div>
            <style type="text/css">
                .shoucang {
                    cursor: pointer;
                    width: 60px;
                    height: 18px;
                    position: relative;
                    margin-left: 393px;
                    margin-top: -50px;
                }

                .shoucang:hover {
                    background-color: silver;
                    opacity: 0.1
                }
            </style>
        </div>
        <div class="proinfo">
            <div class="pro-detail-hd">
                <h1> {$Gdata['title']}</h1>
                <!--
                        <h2 style="color:red;"></h2>
                        -->
                <h2 style="color:red;">
                </h2>
            </div>
            <div class="pro-sales-list">
                <p class="pro-sales-item">
                    官方折扣价 <b class="c-red">￥</b><b class="current_price c-red">{$Gdata['price']}</b>
                    <del>{$Gdata['old_price']}</del>
                </p>
            </div>
            <div class="pro-amount">
                <p> 累计售出： <b class="c-red"> 75</b></p>
                <p class="last"> 赠送积分： <b>{$Gdata['price']}</b>分 </p>
            </div>
            <div class="colorbox pro-key">
                <p> 颜 <span class="pl1em">色：</span></p>
                <ul id="proColor">
                    <!--   先判断是不是货到付款邮件通知过来的 -->
                {foreach $atribute as $k=>$v }
                    <li style="height: 26px" onclick="picker(this)" class="myColor">
                        <a index='0' href="javascript:;" type='ext_attr' name='color' aid="{$v.id}" value='{$v.color}'  cname='颜色'>
                        <p width="40" height="20" code="0200" src="/static/index/images/983419116736_0200_1_0--w_64_h_64_1.jpg" code="0200" title="黑" alt="黑" style="text-align: center">{$v.color}</p>
                            <i></i>
                        </a>
                    </li>
                    {/foreach}
                </ul>
                <div class="clear"></div>
            </div>
            <div class="sizebox pro-key">
                <p> 尺 <span class="pl1em">码：</span></p>
                <ul id="proSize">
                    {foreach $atribute as $k=>$v }
                    <li class="mySize" onclick="sizePicker(this)"><i class="b"></i>
                        <a index="1" href="javascript:void(0)" type='ext_attr' name='size' value='{$v.size}码' code="{$v.size}" cname='尺码'>{$v.size}</a><span id="ma" style="line-height: 27px">码</span></li>
                    {/foreach}
                </ul>
            </div>
            <div class="sizebox pro-key" style="display: none;"><span>己选择：</span><span style="color:#666;"><b
                    id="ext0"></b> <b id="ext1"></b></span></div>
            <div class="sumbox pro-key">
                <p>我&nbsp;&nbsp;要&nbsp;&nbsp;买：</p>
                <i class="mins" onclick="javascript:num_click(0)">-</i>
                <input class="numText" name="num" value="1" id="choose_num"
                       rel="">
                <i class="add" onclick="javascript:num_click(1)">+</i><span
                    style="padding-top: 10px; vertical-align: middle; margin-left: 10px;">件
        库存<b id="actual_number">120</b>件</span></div>
            <div class="buttonbox">
                <button id="buycart" class="dtl-cart containt"   type="button" rel="addcart" ><img src="/static/index/images/addcart_1.png"> 加入购物车
                </button>
                <!-- <input id="tj_buy" class="dtl-buy"  onclick="add_collect_goods('983419116736')" type="button" rel="buy" value="收藏商品"> -->
                <input id="tj_buy" class="dtl-buy"  type="button" rel="buy"
                       value="立即购买">
            </div>
        </div>
    </div>

    <div class="x-description">
        <div class="dtl-left">
            <h1 class="dtl-shop-title">商品分类</h1>#
            <div class="sideMenu" style="margin: 0 auto">
                <h3>
                    <em></em>男鞋
                </h3>
                <ul>
                    <li><a href="/list_goods/index?cat_code=288" target="_blank">跑鞋</a></li>
                    <li><a href="/list_goods/index?cat_code=290" target="_blank">休闲鞋</a></li>
                    <li><a href="http://www.xtep.com.cn/list_goods/index?keywords=综训" target="_blank">综训</a></li>
                    <li><a href="http://www.xtep.com.cn/list_goods/index?cat_code=291" target="_blank"></a><a
                            href="http://www.xtep.com.cn/s/?keywords=%E8%B6%B3%E7%90%83" target="_blank">足球</a></li>
                    <li><a href="http://www.xtep.com.cn/list_goods/index?cat_code=289" target="_blank"></a><a
                            href="http://www.xtep.com.cn/s/10_%E6%88%B7%E5%A4%96,3_1" target="_blank">户外</a></li>
                    <li><a href="http://www.xtep.com.cn/s/?keywords=%E7%AF%AE%E7%90%83" target="_blank">篮球</a></li>
                    <li><a href="http://www.xtep.com.cn/list_goods/index?cat_code=338" target="_blank">棉鞋</a></li>
                </ul>
                <h3>
                    <em></em>女鞋
                </h3>
                <ul>
                    <li><a href="http://www.xtep.com.cn/list_goods/index?cat_code=296" target="_blank">跑鞋</a></li>
                    <li><a href="http://www.xtep.com.cn/list_goods/index?cat_code=297" target="_blank">休闲鞋</a></li>
                    <li><a href="http://www.xtep.com.cn/list_goods/index?keywords=综训" target="_blank">综训鞋</a></li>
                    <li><a href="http://www.xtep.com.cn/list_goods/index?cat_code=298" target="_blank">户外鞋</a></li>
                    <li><a href="http://www.xtep.com.cn/list_goods/index?cat_code=339" target="_blank">棉鞋</a></li>
                    <li><a href="http://www.xtep.com.cn/s/?keywords=9834" target="_blank">冬季新品</a></li>
                    <li><a href="http://www.xtep.com.cn/list_goods/index?keywords=新&sex_code=2" target="_blank"></a><a
                            href="http://www.xtep.com.cn/s/?keywords=%E8%B5%B5%E4%B8%BD%E9%A2%96"
                            target="_blank">丽颖同款</a></li>
                </ul>
                <h3>
                    <em></em>男装
                </h3>
                <ul>
                    <li><a href="http://www.xtep.com.cn/s/10_外套,3_1,6_304:306,9_2" target="_blank">外套</a></li>
                    <li><a href="http://www.xtep.com.cn/s/10_卫衣,3_1" target="_blank">卫衣</a></li>
                    <li><a href="http://www.xtep.com.cn/list_goods/index?cat_code=362" target="_blank">长裤</a></li>
                    <li><a href="http://www.xtep.com.cn/s/?keywords=9834" target="_blank">冬季新品</a></li>
                    <li><a href="http://www.xtep.com.cn/s/10_%E9%95%BFT%E6%81%A4,3_1" target="_blank">长T恤</a></li>
                    <li><a href="http://www.xtep.com.cn/list_goods/index?cat_code=303" target="_blank">羽绒服</a><a
                            href="http://www.xtep.com.cn/list_goods/index?keywords=棉服&sex_code=1" target="_blank"></a>
                    </li>
                </ul>
                <h3>
                    <em></em>女装
                </h3>
                <ul>
                    <li><a href="http://www.xtep.com.cn/s/?keywords=针织外套" target="_blank">针织外套</a></li>
                    <li><a href="http://www.xtep.com.cn/s/10_卫衣,3_2" target="_blank">卫衣</a></li>
                    <li><a href="http://www.xtep.com.cn/list_goods/index?cat_code=364" target="_blank">长裤</a></li>
                    <li><a href="http://www.xtep.com.cn/list_goods/index?cat_code=308" target="_blank">羽绒服</a></li>
                    <li><a href="http://www.xtep.com.cn/s/10_9834,3_2" target="_blank">新品速递</a></li>
                    <li><a href="http://www.xtep.com.cn/s/10_%E7%9A%AE%E8%82%A4%E8%A1%A3,3_2">皮肤衣</a></li>
                    <li><a href="http://www.xtep.com.cn/s/10_%E9%95%BFT%E6%81%A4,3_2" target="_blank">长T恤</a><a
                            href="http://www.xtep.com.cn/list_goods/index?keywords=棉服&sex_code=2" target="_blank"></a>
                    </li>
                </ul>
                <h3>
                    <em></em>儿童
                </h3>
                <ul>
                    <li><a href="/list_goods/index?cat_code=327" target="_blank">跑步鞋</a></li>
                    <li><a href="/list_goods/index?cat_code=342" target="_blank">休闲鞋</a></li>
                    <li><a href="/list_goods/index?cat_code=325" target="_blank">板鞋</a></li>
                    <li><a href="http://www.xtep.com.cn/list_goods/index?cat_code=315" target="_blank">外套</a></li>
                    <li><a href="http://www.xtep.com.cn/list_goods/index?cat_code=316" target="_blank">卫衣</a></li>
                    <li><a href="/list_goods/index?cat_code=320" target="_blank">运动长裤</a></li>

                </ul>
                <h3>
                    <em></em>配件
                </h3>
                <ul>
                    <li><a href="/list_goods/index?cat_code=333" target="_blank">运动袜</a></li>
                    <li><a href="/list_goods/index?cat_code=331" target="_blank">帽子</a></li>
                    <li><a href="/list_goods/index?cat_code=321" target="_blank">运动包</a></li>
                    <li><a href="http://www.xtep.com.cn/list_goods/index?cat_code=287" target="_blank">运动装备</a></li>

                </ul>
            </div>
            <div class="dtl-left-img">
            </div>
            <div class="dtl-browse">
                <h3 class="dtl-browse-title">购买的用户还浏览了</h3>
                <ul class="dtl-browse-ctr">
                    <li>
                        <div class="p-img"><a href="/goods/do_index?goods_sn=985219119256"
                                              title="特步 夏季男跑鞋 易弯折科技运动男跑鞋 减震超弹大底985219119256" target="_blank"> <img
                                width="170" height="170" data-lazy-img="done"
                                alt="特步 夏季男跑鞋 易弯折科技运动男跑鞋 减震超弹大底985219119256"
                                src="/static/index/images/985219119256_big--w_150_h_150_1.jpg"
                                class=""></a></div>
                        <div class="p-name"><a href="/goods/do_index?goods_sn=985219119256"
                                               title="特步 夏季男跑鞋 易弯折科技运动男跑鞋 减震超弹大底985219119256" target="_blank">特步 夏季男跑鞋
                            易弯折科技运动男跑鞋 减震超弹大底985219119256</a></div>
                        <div class="p-price"><strong class="c-red">￥159.00</strong>
                            <del>￥339.00</del>
                        </div>
                    </li>
                    <li>
                        <div class="p-img"><a href="/goods/do_index?goods_sn=984119119527"
                                              title=" 【必抢爆款】特步 专柜款  款男休闲鞋 时尚百搭休闲跑鞋 缓震科技舒适运动男鞋984119119527"
                                              target="_blank"> <img
                                width="170" height="170" data-lazy-img="done"
                                alt=" 【必抢爆款】特步 专柜款  款男休闲鞋 时尚百搭休闲跑鞋 缓震科技舒适运动男鞋984119119527"
                                src="/static/index/images/984119119527_big--w_150_h_150_1.jpg"
                                class=""></a></div>
                        <div class="p-name"><a href="/goods/do_index?goods_sn=984119119527"
                                               title=" 【必抢爆款】特步 专柜款  款男休闲鞋 时尚百搭休闲跑鞋 缓震科技舒适运动男鞋984119119527"
                                               target="_blank"> 【必抢爆款】特步 专柜款 款男休闲鞋 时尚百搭休闲跑鞋 缓震科技舒适运动男鞋984119119527</a>
                        </div>
                        <div class="p-price"><strong class="c-red">￥169.00</strong>
                            <del>￥339.00</del>
                        </div>
                    </li>
                    <li>
                        <div class="p-img"><a href="/goods/do_index?goods_sn=987419119685"
                                              title="【热销爆款】特步 时尚男跑鞋 舒适缓震耐磨透气轻便 冬季男子运动鞋跑步鞋987419119685" target="_blank">
                            <img
                                    width="170" height="170" data-lazy-img="done"
                                    alt="【热销爆款】特步 时尚男跑鞋 舒适缓震耐磨透气轻便 冬季男子运动鞋跑步鞋987419119685"
                                    src="/static/index/images/987419119685_big--w_150_h_150_1.jpg"
                                    class=""></a></div>
                        <div class="p-name"><a href="/goods/do_index?goods_sn=987419119685"
                                               title="【热销爆款】特步 时尚男跑鞋 舒适缓震耐磨透气轻便 冬季男子运动鞋跑步鞋987419119685" target="_blank">【热销爆款】特步
                            时尚男跑鞋 舒适缓震耐磨透气轻便 冬季男子运动鞋跑步鞋987419119685</a></div>
                        <div class="p-price"><strong class="c-red">￥119.00</strong>
                            <del>￥319.00</del>
                        </div>
                    </li>
                    <li>
                        <div class="p-img"><a href="/goods/do_index?goods_sn=985319119520"
                                              title="     特步 秋冬时尚男跑鞋 舒适休闲耐磨百搭男运动鞋985319119520" target="_blank"> <img
                                width="170" height="170" data-lazy-img="done"
                                alt="     特步 秋冬时尚男跑鞋 舒适休闲耐磨百搭男运动鞋985319119520"
                                src="/static/index/images/985319119520_big--w_150_h_150_1.jpg"
                                class=""></a></div>
                        <div class="p-name"><a href="/goods/do_index?goods_sn=985319119520"
                                               title="     特步 秋冬时尚男跑鞋 舒适休闲耐磨百搭男运动鞋985319119520" target="_blank"> 特步
                            秋冬时尚男跑鞋 舒适休闲耐磨百搭男运动鞋985319119520</a></div>
                        <div class="p-price"><strong class="c-red">￥169.00</strong>
                            <del>￥369.00</del>
                        </div>
                    </li>
                    <li>
                        <div class="p-img"><a href="/goods/do_index?goods_sn=987119119297"
                                              title="【特惠】 特步 时尚休闲男跑鞋 轻便舒适透气 简约百搭运动鞋 987119119297" target="_blank"> <img
                                width="170" height="170" data-lazy-img="done"
                                alt="【特惠】 特步 时尚休闲男跑鞋 轻便舒适透气 简约百搭运动鞋 987119119297"
                                src="/static/index/images/987119119297_big--w_150_h_150_1.jpg"
                                class=""></a></div>
                        <div class="p-name"><a href="/goods/do_index?goods_sn=987119119297"
                                               title="【特惠】 特步 时尚休闲男跑鞋 轻便舒适透气 简约百搭运动鞋 987119119297" target="_blank">【特惠】
                            特步 时尚休闲男跑鞋 轻便舒适透气 简约百搭运动鞋 987119119297</a></div>
                        <div class="p-price"><strong class="c-red">￥89.00</strong>
                            <del>￥239.00</del>
                        </div>
                    </li>
                    <li>
                        <div class="p-img"><a href="/goods/do_index?goods_sn=987119119186"
                                              title=" 特步 男子跑鞋 镇店之宝轻便透气男跑鞋 末日重生运动鞋987119119186" target="_blank"> <img
                                width="170" height="170" data-lazy-img="done"
                                alt=" 特步 男子跑鞋 镇店之宝轻便透气男跑鞋 末日重生运动鞋987119119186"
                                src="/static/index/images/987119119186_big--w_150_h_150_1.jpg"
                                class=""></a></div>
                        <div class="p-name"><a href="/goods/do_index?goods_sn=987119119186"
                                               title=" 特步 男子跑鞋 镇店之宝轻便透气男跑鞋 末日重生运动鞋987119119186" target="_blank"> 特步 男子跑鞋
                            镇店之宝轻便透气男跑鞋 末日重生运动鞋987119119186</a></div>
                        <div class="p-price"><strong class="c-red">￥79.00</strong>
                            <del>￥279.00</del>
                        </div>
                    </li>
                    <li>
                        <div class="p-img"><a href="/goods/do_index?goods_sn=984119119517"
                                              title="  特步 男跑鞋 抗折皱轻质革面 轻畅运动男跑步鞋984119119517" target="_blank"> <img
                                width="170" height="170" data-lazy-img="done"
                                alt="  特步 男跑鞋 抗折皱轻质革面 轻畅运动男跑步鞋984119119517"
                                src="/static/index/images/984119119517_big--w_150_h_150_1.jpg"
                                class=""></a></div>
                        <div class="p-name"><a href="/goods/do_index?goods_sn=984119119517"
                                               title="  特步 男跑鞋 抗折皱轻质革面 轻畅运动男跑步鞋984119119517" target="_blank"> 特步 男跑鞋
                            抗折皱轻质革面 轻畅运动男跑步鞋984119119517</a></div>
                        <div class="p-price"><strong class="c-red">￥179.00</strong>
                            <del>￥339.00</del>
                        </div>
                    </li>
                    <li>
                        <div class="p-img"><a href="/goods/do_index?goods_sn=987418379615"
                                              title="   特步 秋冬时尚运动情侣款女棉鞋 复古休闲保暖舒适 防滑耐磨987418379615" target="_blank"> <img
                                width="170" height="170" data-lazy-img="done"
                                alt="   特步 秋冬时尚运动情侣款女棉鞋 复古休闲保暖舒适 防滑耐磨987418379615"
                                src="/static/index/images/987418379615_big--w_150_h_150_1.jpg"
                                class=""></a></div>
                        <div class="p-name"><a href="/goods/do_index?goods_sn=987418379615"
                                               title="   特步 秋冬时尚运动情侣款女棉鞋 复古休闲保暖舒适 防滑耐磨987418379615" target="_blank"> 特步
                            秋冬时尚运动情侣款女棉鞋 复古休闲保暖舒适 防滑耐磨987418379615</a></div>
                        <div class="p-price"><strong class="c-red">￥139.00</strong>
                            <del>￥299.00</del>
                        </div>
                    </li>
                    <li>
                        <div class="p-img"><a href="/goods/do_index?goods_sn=986219113188"
                                              title="特步 专柜 夏季男跑鞋 缓震科技舒适百搭 男子运动跑步鞋986219113188" target="_blank"> <img
                                width="170" height="170" data-lazy-img="done"
                                alt="特步 专柜 夏季男跑鞋 缓震科技舒适百搭 男子运动跑步鞋986219113188"
                                src="/static/index/images/986219113188_big--w_150_h_150_1.jpg"
                                class=""></a></div>
                        <div class="p-name"><a href="/goods/do_index?goods_sn=986219113188"
                                               title="特步 专柜 夏季男跑鞋 缓震科技舒适百搭 男子运动跑步鞋986219113188" target="_blank">特步 专柜
                            夏季男跑鞋 缓震科技舒适百搭 男子运动跑步鞋986219113188</a></div>
                        <div class="p-price"><strong class="c-red">￥179.00</strong>
                            <del>￥369.00</del>
                        </div>
                    </li>
                    <li>
                        <div class="p-img"><a href="/goods/do_index?goods_sn=987319112536"
                                              title=" 【必抢爆款】特步 专柜款   男子秋季时尚运动男休闲跑步鞋 英伦复古经典跑鞋987319112536"
                                              target="_blank"> <img
                                width="170" height="170" data-lazy-img="done"
                                alt=" 【必抢爆款】特步 专柜款   男子秋季时尚运动男休闲跑步鞋 英伦复古经典跑鞋987319112536"
                                src="/static/index/images/987319112536_big--w_150_h_150_1.jpg"
                                class=""></a></div>
                        <div class="p-name"><a href="/goods/do_index?goods_sn=987319112536"
                                               title=" 【必抢爆款】特步 专柜款   男子秋季时尚运动男休闲跑步鞋 英伦复古经典跑鞋987319112536"
                                               target="_blank"> 【必抢爆款】特步 专柜款 男子秋季时尚运动男休闲跑步鞋 英伦复古经典跑鞋987319112536</a>
                        </div>
                        <div class="p-price"><strong class="c-red">￥169.00</strong>
                            <del>￥299.00</del>
                        </div>
                    </li>
                </ul>
            </div>
        </div>
        <div class="dtl-right">
            <div id="dtl-tabbar">
                <div class="tabbar">
                    <ul>
                        <li onclick="slide(this,0)" class="current">商品详情</li>
                    </ul>
                    <div>
                        <p id="qrcode">手机购买<i></i><span><img
                                src="/static/index/images/423f4cd5938a4023ac9f3a4fa13cdccb.gif"></span></p>
                    </div>
                </div>
            </div>
            <div class="c-detail-box">
                <div class="dtl-intro c-dtl-div" id="dtl-intro" style="display: block">
                    {$Gdata['description']}
                </div>
            </div>
        </div>
    </div>
</div>
</div>
<script src="/static/index/layer/layer.js"></script>
<script type="text/javascript">



    //点击添加购物车按钮
    $('#buycart').click(function(){
//        alert(1);
        if($('#proColor li')&&$('#proSize li').hasClass('current')){
//                alert(1);
            //立即购买
            // alert('已添加购物网')
            var data = {
                id:"{:input('param.id')}",
                num:$('.numText').val(),
                spec:{color:$('#proColor .current p').text(),size:$('#proSize .current a').text()}
            };
            $.post("{:url('index/goods/ajaxAddCart')}",data,function(res){
                //添加完成购物车之后，跳转到购物车页面
                if (res =1){
                    location.href = "{:url('index/cart/index')}";
                }

            },'json')
            // $.post(请求地址,请求数据,回调,返回的数据类型)
            // $.ajax({
            // url:'',
            // method:'',
            // data:{},
            // dateType:'json',
            // success(){
            //
            // }
            // })
        }else{
            layer.msg('客官别这样,请先选择规格参数,瞄~~~', function(){});


        }
    })
    //选中规则参数的事件
    $('.cont .content-right .category ul li').click(function(){
        $(this).addClass('zhong').siblings().removeClass('zhong');
        $('.nobdr h6').removeClass('disable');
    });
    ////////////////////////////////////////////////
    function picker(t)
    {
        $(t).addClass('current').siblings().removeClass('current');

//        alert($(t).find("a").attr('aid'));
        var data = {
            aid: $(t).find("a").attr('aid'),
//            price:$('.total').text()
        };
        $.post("{:url('index/goods/ajaxPic')}",data,function(res)
        {
            var ar = res.nu;
            console.log(ar);
            var dataObj = res, //返回的result为json格式的数据
                con = "";

            con += "<div class='tb-booth tb-pic tb-s310'>";
            con +="<div class='new'>新品</div>";
            con +="<a title='' href=''>";
            con +="<img style='width: 448px; height: 448px;cursor: crosshair;' src=/"+res.nu+" title='' rel='' class='jqzoom'/></a>";
            con +="</div>";
            con +="<ul class='tb-thumb' id='thumblist_0201'>";
            $.each(dataObj, function(index, item){
                con += "<li> <div class='tb-pic tb-s40'><a href='javascript:;'>";
                con +="<img style='width: 80px' src=/"+item.pic+" mid=/"+item.pic+" title='' big=/"+item.pic+" rel=/"+item.pic+" class='jqzoom'></a>";
                con += "</div>";
                con += "</li>";
            });

            con +="</ul>";
//            console.log(con);
            $('.pro-img-box').html(con);


        }, 'json');



    };
    function sizePicker(t) {
        $(t).addClass('current').siblings().removeClass('current');
//        $('.mySize').not($(this)).removeClass('current');
    }

    $('#proColor').click(function(){

    })







    var _mvq = window._mvq || [];
    window._mvq = _mvq;
    _mvq.push(['$setAccount', 'm-203116-0']);

    _mvq.push(['$setGeneral', 'goodsdetail', '', /*用户名*/ '', /*用户id*/ '']);
    _mvq.push(['$logConversion']);

    _mvq.push(['setPageUrl', /*单品着陆页url*/ '']);	//如果不需要特意指定单品着陆页url请将此语句删掉
    _mvq.push(['$addGoods', /*分类id*/ '', /*品牌id*/ '', /*商品名称*/ '  【明星同款】特步 第20代风火鞋谢霆锋同款 男子气垫网面跑步鞋 983419116736', /*商品ID*/ '983419116736', /*商品售价*/ '399.00', /*商品图片url*/ 'http://116.62.191.90/sources/goods/983419116736/983419116736_big--w_450_h_450.jpg', /*分类名*/ '', /*品牌名*/ '', /*商品库存状态1或是0*/ '', /*网络价*/ '', /*收藏人数*/ '', /*商品下架时间*/ '']);
    _mvq.push(['$addPricing', /*价格描述*/ '']);
    _mvq.push(['$logData']);
</script>
<script type="text/javascript">
    jQuery(".sideMenu").slide({
        titCell: "h3", //鼠标触发对象
        targetCell: "ul", //与titCell一一对应，第n个titCell控制第n个targetCell的显示隐藏
        effect: "slideDown", //targetCell下拉效果
        delayTime: 300, //效果时间
        triggerTime: 150, //鼠标延迟触发时间（默认150）
        defaultPlay: false,//默认是否执行效果（默认true）
        returnDefault: true //鼠标从.sideMen移走后返回默认状态（默认false）
    });
    //商品咨询consulting
    function put_consulting() {
        var title = $.trim($("input[name='consulting_title']").val());
        var content = $.trim($("textarea[name='consulting_content']").val());
        if (content == '') {
            alert('内容不能为空');
            return false;
        }
        var strlength = countByteLength(content, 1);
        if (strlength >= 300) {
            alert('内容不能超过300字符');
            return false;
        }
        if (content != '' && title != '') {
            $('.wytw-btn').hide();
            var params = 'app_fmt=json&id_value=' + $("input[name='consult_goods_sn']").val() + '&type=' + $("input[name='consult_type']").val() + '&title=' + encodeURIComponent(title) + '&content=' + encodeURIComponent(content);
            $.post('/?app_act=goods/add_comment', params,
                function (s) {
                    if (s.code == 0) {
                        var enable = '1';
                        if (enable == '1') {
                            alert(s.msg + ',请等待管理员审核');
                        } else {
                            alert(s.msg + ',您的咨询已经提交！');
                        }
                        $("input[name='consulting_title']").val('');
                        $("textarea[name='consulting_content']").val('');
                    } else {
                        alert(s.msg);
                    }
                    $('.wytw-btn').show();
                    location.reload();
                }
                , 'JSON');
        } else if (content != '' || title != '') {
            alert('数据填写不完整');
        }
        return false;
    }
</script>



<!--footer  start-->
{/block}